// 整个自己编写的Vue的入口


import initGlobalAPI from "./globalAPI/index";
import initMixin from "./init"
import { lifeCycleMixin } from "./lifecycle";
import { stateMixin } from "./state";
import { nextTick } from "./utils/nextTick";

// es6的类 要求所有的扩展都在类的内部来进行扩展

function Vue(options) {
    this._init(options);
}
initMixin(Vue); // 后续在扩展都可以采用这种方式
lifeCycleMixin(Vue)
stateMixin(Vue);
initGlobalAPI(Vue)

Vue.prototype.$nextTick = nextTick




export default Vue